public class Student {
        String name;
        String gender;
        int age;
        int id;
        double score;

        public String say() {
            return "姓名：" + name + "\n" +
                    "性别：" + gender + "\n" +
                    "年龄：" + age + "\n" +
                    "身份证号码：" + id + "\n" +
                    "成绩：" + score + "\n";
        }
    }
    class StudentTest {
        public static void main(String[] args) {
            Student student = new  Student();
            student.name = "张崇杰";
            student.gender = "男";
            student.age = 22;
            student.id = 745600;
            student.score = 99;

            String info = student.say();
            System.out.println(info);

        }
    }
